<?php if(!defined("PATH_HD"))exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>花瓣网</title>
        <link type="text/css" rel="stylesheet" href="http://localhost/aaaaaaaahuaban/index/tpl/public/css/index.css"/>
        <link type="text/css" rel="stylesheet" href="http://localhost/aaaaaaaahuaban/index/tpl/public/css/com.css"/>
         <style>
            .icon{ background:url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/main_menu_sprite.png'); }
            body{background:url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/bg.gif') repeat; }
            #sub{background:url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/sub.png')}
            #h_logon,#reg_2{background:url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/tips_bg.gif')}
            #reg_3 {
                background: url("http://localhost/aaaaaaaahuaban/index/tpl/public/img/home_mv.png") no-repeat scroll 0 0 transparent;

            }
            .cols{background:url("http://localhost/aaaaaaaahuaban/index/tpl/public/img/cols.png")}
            .sub{background:url("http://localhost/aaaaaaaahuaban/index/tpl/public/img/logon_sub.png")}
          
            .ajax_anniu{border:1px solid #C5BEBE;margin-left: 15px;font-size:13px; font-weight: blod;background: #F2EFEF;display:block;float:left;height:30px;width:45px;text-align: center;line-height: 30px;}
             .zhuancai span{display: none;}
             .ajax_tit{border: 0px;border-top:1px solid red;}

            /** 完整版示例 **/
                            
            #menu { background:url(http://localhost/aaaaaaaahuaban/index/tpl/public/img/bg_menu.gif) scroll 0 -1px repeat-x; border:1px solid #CCC; }
            #menu ul li span.bg { height: 45px; background: url(http://localhost/aaaaaaaahuaban/index/tpl/public/img/bg_over.gif) center center no-repeat; }
            #loaderCircle {
                width: 16px;
                height: 16px;
                margin: 0 auto;
                background-image: url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/loader.gif');
            }
           
         </style>
        <script type='text/javascript' src='http://localhost/aaaaaaaahuaban/hdphp/org/jquery-1.7.2.min.js'></script>
         <script type='text/javascript'>
		HOST = 'http://localhost';
		ROOT = 'http://localhost/aaaaaaaahuaban';
		HDPHP = 'http://localhost/aaaaaaaahuaban/hdphp';
		STATIC = 'http://localhost/aaaaaaaahuaban/static';
		DATA = 'http://localhost/aaaaaaaahuaban/data';
		WEB = 'http://localhost/aaaaaaaahuaban/index.php';
		APP = 'http://localhost/aaaaaaaahuaban/index.php';
		CONTROL = 'http://localhost/aaaaaaaahuaban/index.php/index';
		METH = 'http://localhost/aaaaaaaahuaban/index.php/index/index';
		URL = 'http://localhost/aaaaaaaahuaban/index.php/index/index';
		ORG = 'http://localhost/aaaaaaaahuaban/hdphp/org';
		TPL = 'http://localhost/aaaaaaaahuaban/index/tpl';
		PUBLIC = 'http://localhost/aaaaaaaahuaban/index/tpl/public';
</script>
        <script type="text/javascript" src="<?php echo "http://localhost/aaaaaaaahuaban/index/tpl/public/js/index.js";?>"></script>
        <script type="text/javascript" src="<?php echo "http://localhost/aaaaaaaahuaban/index/tpl/public/js/jquery.wookmark.js";?>"></script>
        <script type="text/javascript" src="<?php echo "http://localhost/aaaaaaaahuaban/index/tpl/public/js/ajax.js";?>"></script>
       
        <script type="text/javascript">
            $(function(){
               
               
                ajaxwook('http://localhost/aaaaaaaahuaban/index.php/index/data_ajax','http://localhost/aaaaaaaahuaban');
                
                
            $(".ajax_title").live("mouseover",function(){
                $(this).children().children('span').show();
      
            });
             $(".ajax_title").live("mouseout",function(){
                $(this).children().children('span').hide();
            });
         
    

});
   
        </script>
      
    </head>
    <body>
        <!-- 头部分 -->
        <div id='heade'>
            <div id='title'>
                <div id='shouye'>
                    <a href='http://localhost/aaaaaaaahuaban/index.php/index/index' title='首页'>
                        <em class="icon"></em>
                        <span style='color:red;'>首页</span>
                    </a>
                </div>
                <span id='logo'>
                    <img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/logo_38.png' />
                </span>
                <!-- 判断是否为空 -->
                <?php  if(@empty($_SESSION['user']['uid'])){?>   
                    <div id='user_info'>
                        <a href='#' name="dianjilogo" title='登陆'>点击登录</a>	
                    </div>
                    <?php }else{ ?>
                    <div id='user_img'>
                        <a href="http://localhost/aaaaaaaahuaban/index.php/user/index" title='个人中心'><img src="http://localhost/aaaaaaaahuaban/<?php echo $dat['user_img'];?>"/></a>	
                    </div>
                <?php }?>

               <div id='seach'>
                    <form action='#' method='post'>
                        <input type='text' name='seache' />
                        <input id='sub' type='submit' title='搜索' value='' />
                    </form>
                </div>

            </div>

        </div>

        <div  id='largeImg' value="<?php echo $_SESSION['user']['uid'];?>">
            <a href="http://localhost/aaaaaaaahuaban/index.php/user/index">我的花瓣</a>
            <a  name="caiji" href="javascript:void(0)">上传采集</a>
            <a  name="xinjianhuaban" href="javascript:void(0)">新建画板</a>
            <a href="http://localhost/aaaaaaaahuaban/index.php/index/edit_user">账号设置</a>
            <a  href="http://localhost/aaaaaaaahuaban/index.php/index/out">退出登陆</a>
        </div>
        <!-- 如果登录的话不显示这个注册登录 -->
        <?php  if(@empty($_SESSION['user']['uid'])){?>
            <div id='reg' >
                <div id='reg_1'>
                    <div id='reg_2'>
                        <span class='reg_l'>
                            <a id="reg_3" class="mv"  onclick="app.showDialog('mv');return false;" title='花瓣介绍'; href="#"></a>
                            <span>花瓣，</span>
                            采集你喜欢的。
                        </span>
                        <div id='lg'>
                            <a  href='http://localhost/aaaaaaaahuaban/index.php/index/reg' title='注册'><img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/reg.png' /></a>
                            <a name='logo' href='#' title='登录'><img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/lg.png' /></a>
                        </div>
                        <div id='hezuo'>
                            <span>使用合作网站帐号登录</span>
                            <table >
                                <tr>
                                    <td width='40px' > <a href='#'><img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/log1.png'/></a></td>
                                    <td width='40px'><a href='#'><img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/log2.png'/></a></td>
                                    <td width='40px' ><a href='#'><img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/log3.png' /></a></td>
                                    <td width='40px' ><a href='#'><img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/log4.png' /></a></td>
                                </tr>
                            </table>
                        </div> 
                    </div>
                </div>
            </div>

        <?php }?>

 
        <!-- 导航部分 -->
        <div id='daohang'>
            <div id="menu" class="menu">
                <ul>
                    <li><a href="#">美女</a></li>
                    <li><a href="#">摄影</a></li>
                    <li><a href="#">视频</a></li>
                    <li><a href="#">家居</a></li>
                    <li><a href="#">旅行</a></li>
                    <li><a href="#">创意设计</a></li>
                </ul>
                <div class='huaban'>
                    <a style='color:#D4B67B;' href='#'>【花瓣市集】这里的每一件商品都曾被人喜欢</a>
                </div>                  
            </div>
        </div>

        <!-- 瀑布流 -->
        <div id='con'>
            <div class='con_div'>
                <?php  if(@empty($_SESSION['user']['uid'])){?> 	
                    <div id="main" role="main">

                        <ul id="tiles">

                        </ul>
                        </div>
                        <div id="loader">
                            <div id="loaderCircle"></div>



                        </div>
                        <?php }else{ ?>


                        <!--瀑布流--><!-

                        <div id="main" role="main">
                           
                            <ul id="tiles">
                        
                                <li> 
                                    <a href="http://localhost/aaaaaaaahuaban/index.php/user/index"><img  src="http://localhost/aaaaaaaahuaban/<?php echo $dat['user_img'];?>"></a>
                                        <table width=100% height="120" bgcolor='white'>
                                            <tr>
                                                <td>用户名:</td>
                                                <td  align='left'> <a href="http://localhost/aaaaaaaahuaban/index.php/user/index"><?php echo $dat['username'];?><a></td>
                                                <td  align='left'> <a href="http://localhost/aaaaaaaahuaban/index.php/index/out">退出登陆<a></td>
                                                            </tr>
                                            <tr>     
                                                <td align='center'><a href='http://localhost/aaaaaaaahuaban/index.php/index/edit_user'>账号<br>设置</a></td>
                                                <td align='center'><a name="caiji" href='#'>上传<br>采集</a></td>
                                                <td align='center'><a  name="xinjianhuaban" href='#'>新建<br>画板</a></td>
                                            </tr>
                                            <tr>
                                                <td align='center'><a href='http://localhost/aaaaaaaahuaban/index.php/user/caiji'>采集:<?php echo $cai_con;?></a></td>
                                                <td align='center'><a href='http://localhost/aaaaaaaahuaban/index.php/user/index'>画板:<?php echo $hua_con;?></a></td>
                                                <td align='center'><a href='#'>粉丝:3</a></td>
                                            </tr>
                                        </table>

                                </li>

                            </ul>
                            </div>
                            <div id="loader">
                                <div id="loaderCircle"></div>正在加载中！
                            </div>
                            <?php }?>



                        </div>

                    </div>



                    <!-- 隐藏注册页面 -->

                    <div id='zhezhao'>
                    </div>

                    <div id='h_logon' >
                        <div class=cols></div>
                        <div class='r_title'>
                            <span>登录花瓣</span>
                        </div>
                        <div class='logon'>
                            <div class='logon_1'>
                                <img src='http://localhost/aaaaaaaahuaban/index/tpl/public/img/login_1.png'>
                            </div>
                            <span class='span1'>使用注册邮箱登录</span>
                            <div class='logon_2'>
                                <form action='http://localhost/aaaaaaaahuaban/index.php/index/log' method='post'>
                                    <input class='put1' type='text'  name='username' /><br />
                                    <input  class='put1' id='pwd' type='password' name='password' /><br />
                                    <input class='sub' type='submit' value='' />
                                    <a class='wangjipwd' href='#'>忘记密码？</a>
                                    <a class='xiangqipwd' href='#'>我又想起来了！</a>
                                </form>

                            </div>
                        </div>  	

                    </div>
                    <!-- 隐藏上传采集 -->
                    <form action="http://localhost/aaaaaaaahuaban/index.php/index/chaiji" method="post">
                        <div class='shangchuan'>
                            <div class=cols></div>

                            <div class="shangchuan_1">
                                <?php $swfupload_path="http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250"?><?php $url="http://localhost/aaaaaaaahuaban/index.php/index/swfupload"?><?php $delurl="http://localhost/aaaaaaaahuaban/index.php/index/swfuploaddel"?><?php $size="1MB"?><?php $water_on="0"?><?php $upload_display_width="150px"?><?php $upload_display_height="150px"?><?php $imagesize=""?><?php $swfupload_size="1000000"?><?php $limit="2"?><?php $text="采集图片"?><?php $dir=""?><?php $session_name="hdsid"?><?php $session_id="pfr5c2vaprkhgokq50lndpmt27"?><?php $type="*.*"?><?php $swfupload_id=isset($swfupload_id)?++$swfupload_id:0?><?php $input_hidden="img"?><?php if($swfupload_id==0):?>
<link href='http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250/css/default.css' rel='stylesheet' type='text/css' />
<script type='text/javascript' src='http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250/js/handlers.js'></script>
<script type='text/javascript' src='http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250/swfupload/swfupload.js'></script>
<script type='text/javascript' src='http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250/swfupload/swfupload.queue.js'></script>
<script type='text/javascript' src='http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250/js/fileprogress.js'></script>  
  <script type='text/javascript' src='http://localhost/aaaaaaaahuaban/hdphp/org/swfupload250/hd_set.js'></script>
<?php endif;?><script type="text/javascript">
            //向军  houdunwang.com  houdunwang@gmail.com
    if(typeof swfupload=='undefined'){
        swfupload_file=[];//记录添加或删除文件数据
    }
    $(function(){
        var swfu;
        var settings = {
            flash_url : '<?php echo $swfupload_path; ?>/swfupload/swfupload.swf',
            flash9_url : '<?php echo $swfupload_path; ?>/swfupload/swfupload_fp9.swf',
            upload_url: '<?php echo $url; ?>',
            post_params: {},//POST参数
            file_size_limit : '<?php echo $size; ?>',
            file_types : '<?php echo $type; ?>',
            file_types_description : 'Files:',
            file_upload_limit :<?php echo $limit; ?>,
            file_queue_limit : 0,
            custom_settings : {
                progressTarget : 'fsUploadProgress<?php echo $swfupload_id ?>',
                cancelButtonId : 'btnCancel'
            },
            debug: false,
            button_width: '110',
            button_height: '26',
            button_placeholder_id: 'spanButtonPlaceHolder',
            button_text: '<span class="theFont"><?php echo $text; ?></span>',
            button_text_style: '.theFont { display:block;font-size: 14;font-weight:bold;color:#ffffff; }',
            button_text_left_padding: 30,
            button_text_top_padding: 3,
            button_window_mode: SWFUpload.WINDOW_MODE.TRANSPARENT,
            button_cursor: SWFUpload.CURSOR.HAND,
            swfupload_preload_handler : preLoad,
            swfupload_load_failed_handler : loadFailed,
            file_queued_handler : fileQueued,
            file_queue_error_handler : fileQueueError,
            file_dialog_complete_handler : fileDialogComplete,
            upload_start_handler : uploadStart,
            upload_progress_handler : uploadProgress,
            upload_error_handler : uploadError,
            upload_success_handler : uploadSuccess,
            upload_complete_handler : uploadComplete,
            queue_complete_handler : queueComplete	// Queue plugin event
        };
        settings.post_params['<?php echo $session_name; ?>']='<?php echo $session_id; ?>';
        settings.post_params['dir']='<?php echo $dir; ?>';
        settings.post_params['upload_display_width']='<?php echo $upload_display_width; ?>';
        settings.post_params['upload_display_height']='<?php echo $upload_display_height; ?>';
        settings.post_params['imagesize']='<?php echo $imagesize; ?>';
        //settings.post_params['thumbon1']='< ? php echo $thumbon; ? >';
        settings.post_params['swfupload_size']='<?php echo $swfupload_size; ?>';
        settings.post_params['water_on']='<?php echo $water_on; ?>';
        swfu = new SWFUpload(settings);
        var file_upload={
            "swfuobj":swfu,//上传对象
            "file_upload_limit":swfu.settings.file_upload_limit,//允许上传的总的文件数量，删除操作不会改变
            "file_allow_total":swfu.settings.file_upload_limit,//允许上传的总的文件数量,删除操作会改变
            "file_success_nums":0,//成功上传的文件数量
            "file_nums":0,//已经上传的文件数量，包括删除的文件
            "delurl":"<?php echo $delurl; ?>",
            "input_name":"<?php echo $input_hidden;?>"
        };
        swfupload_file.push(file_upload);
    })
</script>
            <!--上传显示DIV-->
        <div class='fieldset flash' id='fsUploadProgress<?php echo $swfupload_id;?>'>
        </div>

        <div class='swfupload_button'  href='javascript:;'>
            <span id='spanButtonPlaceHolder'></span>
            <i class='ico-btn ib-upload' style='position:absolute;left:10px;top:5px;'></i>
        </div>
        <div id='swfupload_message<?php echo $swfupload_id;?>'></div>
        <div  class='swfupload_file_show' id='swfupload_file_show<?php echo $swfupload_id;?>'>
        <?php if($swfupload_id==0):?>
            <div class='swfupload_input'></div>
            <?php endif;?>
            <ul></ul>
        </div>
        
                            </div>

                            <div class="shangchuan_2">
                                选择画板
                                <select name="hid" style='font-size: 28px;'>
                                    <?php if(!empty($chaiji)){$listCount = count($chaiji);$list_id1=0;?><?php foreach($chaiji as $key=>$v){?><?php $list_id1+=1;?>
                                        <option value='<?php echo $v['hid'];?>'><?php echo $v['htitle'];?></option>
                                    <?php }?><?php }?>
                                </select><br/><br />
                                描述一下这个采集。。。
                                <textarea cols='28' rows='5' name="title">
                                </textarea>
                                <input type="submit" value="" style="width:79px;height:33px;cursor:pointer;border:0px;background: url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/caixialai.png')">
                            </div>

                        </div>
                    </form>
                       <!-- 隐藏转采 -->
                    <form action="http://localhost/aaaaaaaahuaban/index.php/index/zhuancai" method="post">
                        <div class='f_zhuancai'>
                            <div class='cols'></div>
                            <div class="shangchuan_1">
                               <img name="z_cai" src="">
                            </div>
                            <input type="hidden" name="cid" value="">
                            <div class="shangchuan_2">
                                选择画板
                                <select name="hid" style='font-size: 28px;'>
                                    <?php if(!empty($chaiji)){$listCount = count($chaiji);$list_id1=0;?><?php foreach($chaiji as $key=>$v){?><?php $list_id1+=1;?>
                                        <option value='<?php echo $v['hid'];?>'><?php echo $v['htitle'];?></option>
                                    <?php }?><?php }?>
                                </select><br/><br />
                                描述一下这个采集。。。
                                <textarea cols='28' rows='5' name="title">
                                </textarea>
                                <input type="submit" value="" style="width:79px;height:33px;cursor:pointer;border:0px;background: url('http://localhost/aaaaaaaahuaban/index/tpl/public/img/caixialai.png')">
                            </div>

                        </div>
                    </form>
                    <!-- 隐藏新建画板 -->
                    <form action='http://localhost/aaaaaaaahuaban/index.php/index/createhuaban' method='post'>
                        <div class='creathuaban'>
                            <div class=cols></div>

                            <table border="0px" width='500' height='250'>
                                <tr>
                                    <th colspan="2"style='font-size: 28px;'>新建画板</th>
                                </tr>
                                <tr>
                                    <td  style='font-size: 28px;' align="right" >画板标题:</td><td><input style='width:300px;font-size: 28px;' type="text" name='htitle'><br/></td>
                                </tr>
                                <tr>
                                    <td style='font-size: 28px;' align="right">  画板分类:</td>
                                    <td><select name="tid" style='width:300px;font-size: 28px;' >
                                            <?php if(!empty($cata)){$listCount = count($cata);$list_id3=0;?><?php foreach($cata as $key=>$v){?><?php $list_id3+=1;?>
                                                <option value='<?php echo $v['tid'];?>'><?php echo $v['category'];?></option>
                                            <?php }?><?php }?>
                                        </select></td>
                                </tr>
                                <tr>

                                    <td colspan="2" align='center'> <input type="submit" value="创建画板" style='width:80px;height:30px' ></td>
                                </tr>
                            </table>
                        </div> 
                    </form>
                    
                  <p id="back-to-top"><a href="#top"><span></span>返回顶部</a></p>
                   
                </body>

                    </html>